package com.ruoyi.bookbus.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.bookbus.mapper.BookFeedbackMapper;
import com.ruoyi.bookbus.domain.BookFeedback;
import com.ruoyi.bookbus.service.IBookFeedbackService;

/**
 * 留言反馈Service业务层处理
 * 
 * @author zsq-cj
 * @date 2025-10-21
 */
@Service
public class BookFeedbackServiceImpl implements IBookFeedbackService 
{
    @Autowired
    private BookFeedbackMapper bookFeedbackMapper;

    /**
     * 查询留言反馈
     * 
     * @param id 留言反馈主键
     * @return 留言反馈
     */
    @Override
    public BookFeedback selectBookFeedbackById(Long id)
    {
        return bookFeedbackMapper.selectBookFeedbackById(id);
    }

    /**
     * 查询留言反馈列表
     * 
     * @param bookFeedback 留言反馈
     * @return 留言反馈
     */
    @Override
    public List<BookFeedback> selectBookFeedbackList(BookFeedback bookFeedback)
    {
        return bookFeedbackMapper.selectBookFeedbackList(bookFeedback);
    }

    /**
     * 新增留言反馈
     * 
     * @param bookFeedback 留言反馈
     * @return 结果
     */
    @Override
    public int insertBookFeedback(BookFeedback bookFeedback)
    {
        return bookFeedbackMapper.insertBookFeedback(bookFeedback);
    }

    /**
     * 修改留言反馈
     * 
     * @param bookFeedback 留言反馈
     * @return 结果
     */
    @Override
    public int updateBookFeedback(BookFeedback bookFeedback)
    {
        return bookFeedbackMapper.updateBookFeedback(bookFeedback);
    }

    /**
     * 批量删除留言反馈
     * 
     * @param ids 需要删除的留言反馈主键
     * @return 结果
     */
    @Override
    public int deleteBookFeedbackByIds(Long[] ids)
    {
        return bookFeedbackMapper.deleteBookFeedbackByIds(ids);
    }

    /**
     * 删除留言反馈信息
     * 
     * @param id 留言反馈主键
     * @return 结果
     */
    @Override
    public int deleteBookFeedbackById(Long id)
    {
        return bookFeedbackMapper.deleteBookFeedbackById(id);
    }
}
